package work;

import cn.hutool.core.io.FileUtil;
import core.util.WorkUtil;

import java.nio.charset.Charset;

public class WoekUtileTest {
    public static void main(String[] args) {
        WorkUtil.jsonToJava(json, false,"ShuYunInventoryResponse");
    }

    static String json = """
            {
              "body": {
                "status": 200,
                "msg": "ok",
                "data": {
                  "code": "10000",
                  "message": "SUCCESS",
                  "res": {
                    "desc": "花间舞蝶绿色&蓝色杯碟",
                    "price": "1200.00",
                    "productId": 36,
                    "skuCode": "40003931",
                    "stock": 1026,
                    "is_del": 0,
                    "is_show": 1,
                    "image": "https://wedgwood.oss-cn-hangzhou.aliyuncs.com/attach/2022/05/5d5db202205091343497706.jpg"
                  }
                }
              }
            }
            """;
}
